package Task2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-05-12
 * Time:13:16
 */
public class SalariedEmployee extends ColaEmployee{
    public int salary;

    public SalariedEmployee(String name, int birthday, int salary) {
        super(name, birthday);
        this.salary = salary;
    }

    @Override
    public double getSalary(int month) {
        if(month==super.birthday){
            return this.salary+100;
        }else{
            return this.salary;
        }
    }
}
